
function linkto(){
    // 链接登录页
    let linklogin=document.querySelector('.link-login');
    linklogin.addEventListener('click',function(){
        location.href='./login.html'
    })
  
    // 链接注册页    
    let linkregist=document.querySelector('.link-regist');
    linkregist.addEventListener('click',function(){
        location.href='./register.html'
    })
    
     // 链接首页    
     let linkhomepage=document.querySelector('.link-homepage');
     linkhomepage.addEventListener('click',function(){
         location.href='./index.html'

     })

}



